package com.java.common.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class MyException extends RuntimeException{
    private Integer code;
    private String msg;
    public MyException(Integer code,String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
